<template>
  {{age}}<br>
<!--  <button @click="age++">age++</button>-->
  <button @click="sum">age++</button>
</template>

<script lang="ts" setup>
  import {ref} from "vue";
  const age = ref(1)
  const sum=()=>{
    age.value++
  }
</script>

<style>

</style>
